import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vite.dev/config/
export default defineConfig({
  plugins: [react({
    babel: {
        plugins: [
          ['@babel/plugin-proposal-decorators', { legacy: true }]
        ]
      }
  })],
  css: {
    modules: {
      // 定义 CSS 类名在 JavaScript 中的导出格式。
      localsConvention: 'camelCase',
    }
  }
})